﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DapperExtensions.Mapper;

namespace ZLWeb.WebApiEntity.EasyUse
{
    public class WxMsg
    {
        private string _msgwxopenid = string.Empty;
        private string _msgcontent = string.Empty;
        private DateTime? _msgcrtime = DateTime.Now;

        public string msgwxopenid
        {
            set { _msgwxopenid = value; }
            get { return _msgwxopenid; }
        }

        public short msgform { set; get; }

        public string msgcontent
        {
            set { _msgcontent = value; }
            get { return _msgcontent; }
        }

        public DateTime? msgcrtime
        {
            set { _msgcrtime = value; }
            get { return _msgcrtime; }
        }

        public int msgsn { set; get; }
    }

    public class WxMsgMapper : ClassMapper<WxMsg>
    {
        public WxMsgMapper()
        {
            Table("#WxMsg");
            Map(f => f.msgwxopenid).Column("msgwxopenid");
            Map(f => f.msgform).Column("msgform");
            Map(f => f.msgcontent).Column("msgcontent");
            Map(f => f.msgcrtime).Column("msgcrtime");
            Map(f => f.msgsn).Column("msgsn");
        }
    }

}